﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Triunfadores.BusinessEntities
{
    public class DetalleCliente
    {
        //solo para genrar la base de datos
        //public Int32 Id { get; set; }
        public int Cantidad { get; set; }

        public virtual Beneficiario Beneficiario { get; set; }
        public int BeneficiarioId { get; set; }

        public virtual Cliente Cliente { get; set; }
        public int ClienteId { get; set; }

        public bool Equals(DetalleCliente other)
        {
            if (object.ReferenceEquals(other, null)) return false;
            if (object.ReferenceEquals(this, other)) return true;

            return BeneficiarioId.Equals(other.BeneficiarioId) && ClienteId.Equals(other.ClienteId);
        }
    }
}
